<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::cxselect('ajax/area', ['province','city','area'], ['province'=>$row.province, 'city'=>$row.city,'area'=>$row.area])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">详细{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control form-control" name="row[address]" type="text" value="{$row.address}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-category" data-rule="required" class="form-control selectpicker" name="row[category]">
                {foreach name="categoryList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.category"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Class')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-class" data-rule="required" class="form-control form-control" name="row[class]" type="number" value="{$row.class}">-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Total_number')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-total_number" data-rule="required" class="form-control form-control" name="row[total_number]" type="number" value="{$row.total_number}">-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Textbook_edition')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::fieldlist('row[textbook_edition]',$row.textbook_edition, ['科目','版本'], '', ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Policylist')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-policylist" class="form-control selectpicker" multiple="" name="row[policylist][]">
                {foreach name="policylistList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.policylist"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_schoolsdata')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="isSchoolsdataList" item="vo"}
            <label for="row[is_schoolsdata]-{$key}"><input id="row[is_schoolsdata]-{$key}" name="row[is_schoolsdata]" type="radio" value="{$key}" {in name="key" value="$row.is_schoolsdata"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_score')}::</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::fieldlist('row[textbook_edition]',$row.total_score, ['科目','总分数'], '', ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Volume')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-volume" class="form-control selectpicker" name="row[volume]">
                {foreach name="volumeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.volume"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Teaching_order')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-teaching_order" class="form-control selectpicker" name="row[teaching_order]">
                {foreach name="teachingOrderList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.teaching_order"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bookstore')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::fieldlist('row[bookstore]',$row.bookstore, ['姓名','详细地址'], '', ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
